package com.mojian.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 支付订单VO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PayOrderVO {

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 文章ID
     */
    @NotBlank(message = "文章ID不能为空")
    private String articleId;

    /**
     * 支付方式: alipay-支付宝, wechat-微信
     */
    @NotBlank(message = "支付方式不能为空")
    private String paymentMethod;

    /**
     * 支付金额
     */
    @NotNull(message = "支付金额不能为空")
    private BigDecimal amount;

    /**
     * 订单状态: PENDING-待支付, PROCESSING-处理中, SUCCESS-支付成功, FAILED-支付失败
     */
    private String status;

    /**
     * 支付二维码URL
     */
    private String qrCodeUrl;
} 